<wicket:panel>
	<div class="saved-queries card">
		<div class="card-header">
			<h3 class="card-title mr-4">Saved Queries</h3>
			<div class="card-toolbar">
				<a wicket:id="edit" class="edit-saved-queries mr-2 btn btn-light btn-xs btn-icon btn-hover-primary text-muted" title="Edit saved queries">
					<wicket:svg href="edit" class="icon"></wicket:svg>
				</a>
				<a wicket:id="close" class="close-saved-queries btn btn-light btn-xs btn-icon btn-hover-danger text-muted" title="Hide saved queries">
					<wicket:svg href="times" class="icon"></wicket:svg>
				</a>
			</div>
		</div>
		<div class="card-body">
			<div wicket:id="personalQueries" class="mb-4">
				<span class="btn-group">
					<a wicket:id="subscriptionStatus" class="subscription-status btn btn-outline-secondary btn-sm btn-icon flex-shrink-0 h-auto"></a>
					<a wicket:id="watchStatus" class="watch-status btn btn-outline-secondary btn-icon btn-sm flex-shrink-0 h-auto"></a>
					<a wicket:id="link" class="btn btn-sm btn-outline-secondary text-left"><span wicket:id="label"></span></a>					
				</span>
			</div>
			<div wicket:id="commonQueries" class="mb-4">
				<span class="btn-group">
					<a wicket:id="subscriptionStatus" class="subscription-status btn btn-outline-secondary btn-sm btn-icon flex-shrink-0 h-auto"></a>
					<a wicket:id="watchStatus" class="watch-status btn btn-outline-secondary btn-icon btn-sm flex-shrink-0 h-auto"></a>
					<a wicket:id="link" class="btn btn-sm btn-outline-secondary text-left"><span wicket:id="label"></span></a>
				</span>
			</div>
		</div>
	</div>
	<wicket:fragment wicket:id="editSavedQueriesFrag">
		<div class="edit-saved-queries">
			<div class="modal-header">
				<h5 class="modal-title">Edit Saved Queries</h5>
				<button wicket:id="close" type="button" class="close"><wicket:svg href="times" class="icon"/></button>
			</div>
			<div wicket:id="content" class="modal-body"></div>
		</div>
	</wicket:fragment>
	<wicket:fragment wicket:id="editPersonalAwareSavedQueriesFrag">
		<div class="edit-saved-queries">
			<div class="modal-header">
				<h5 class="modal-title">Edit Saved Queries</h5>
				<button wicket:id="close" type="button" class="close"><wicket:svg href="times" class="icon"/></button>
			</div>
			<div class="modal-body">
				<ul wicket:id="tab" class="nav nav-tabs mb-3"></ul>
				<div wicket:id="tabPanel"></div>
			</div>
		</div>
	</wicket:fragment>
	<wicket:fragment wicket:id="editSavedQueriesContentFrag">
		<form wicket:id="form" class="leave-confirm">
			<div wicket:id="feedback"></div>
			<div wicket:id="editor"></div>
			<div class="modal-footer">
				<input wicket:id="save" type="submit" class="dirty-aware btn btn-primary" value="Save">
				<a wicket:id="useDefault" class="btn btn-light-primary">Use Default</a>
				<a wicket:id="cancel" class="btn btn-secondary">Cancel</a>
			</div>
		</form>
	</wicket:fragment>	
</wicket:panel>
